﻿<%@ Page Language="C#" MasterPageFile="~/Masters/Office.Master" AutoEventWireup="true" CodeBehind="TabEdit.aspx.cs" Inherits="THANHTUNGO.Portal.Modules.TAB.TabEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellspacing="0" cellpadding="10" width="100%">
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" SkinID="Header" Text="THIẾT LẬP CẤU TRÚC TRANG"></asp:Label>
                <hr size="1" />
            </td>
        </tr>
        <tr>
            <td>
                <table border="0" cellpadding="6" cellspacing="1" width="100%" class="Panel">
                    <tr>
                        <td width="1%" class="LeftColumn" style="height: 36px" align="right" nowrap="noWrap">
                            Tiêu đề hiển thị
                        </td>
                        <td style="height: 36px" class="RightColumn">
                            <asp:TextBox ID="tabName" Width="200px" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="LeftColumn" nowrap="nowrap" style="height: 36px" width="1%">
                            <asp:Label ID="Label1" runat="server" Text="Theme name:"></asp:Label></td>
                        <td class="RightColumn" style="height: 36px">
                            <asp:DropDownList ID="ddlThemeName" runat="server">
                                <asp:ListItem>Blue</asp:ListItem>
                                <asp:ListItem>XP</asp:ListItem>
                                <asp:ListItem>Orange</asp:ListItem>
                                <asp:ListItem>Green</asp:ListItem>
                                <asp:ListItem>Violet</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td align="right" class="LeftColumn" nowrap="nowrap" style="height: 36px" width="1%">
                            <asp:Label ID="Label2" runat="server" Text="Show pane:"></asp:Label></td>
                        <td class="RightColumn" style="height: 36px">
                            <asp:CheckBox ID="chkLeftPane" runat="server" Text="Left pane" />
                            <asp:CheckBox ID="chkRightPane" runat="server" Text="Right pane" /></td>
                    </tr>
                    <tr>
                        <td class="LeftColumn" nowrap align="right" width="1%">
                            Quyền truy nhập
                        </td>
                        <td class="RightColumn">
                            <asp:Panel ID="Panel1" runat="server" CssClass="Panel" Height="200px" ScrollBars="Auto" Width="500px" BackColor="White">
                                <asp:CheckBoxList ID="chkRoles" runat="server" />
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="LeftColumn" nowrap="nowrap" width="1%" rowspan="4">
                            Gắn module
                        </td>
                        <td class="RightColumn">
                            <asp:DropDownList ID="moduleType" DataValueField="ID" DataTextField="Name" runat="server" CssClass="TextBox" />
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="RightColumn">
                            <asp:TextBox ID="moduleTitle" EnableViewState="false" Text="[Tên module]" runat="server" Width="200px" />
                        </td>
                    </tr>
                    <tr>
                        <td class="RightColumn">
                            <asp:DropDownList ID="ddlPane" runat="server" CssClass="TextBox">
                                <asp:ListItem>LeftPane</asp:ListItem>
                                <asp:ListItem Selected="True">ContentPane</asp:ListItem>
                                <asp:ListItem>RightPane</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="RightColumn">
                            <asp:ImageButton ImageUrl="~/Images/Icons/Add.gif" AlternateText="Add module" runat="server" ID="btnAddModule" OnClick="btnAddModule_Click" CssClass="Icon" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="LeftColumn" nowrap="nowrap" width="1%">
                            Cấu trúc trang
                        </td>
                        <td class="RightColumn">
                            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                                <tr>
                                    <td width="1%" valign="top">
                                        <table border="0" cellspacing="4" cellpadding="0">
                                            <tr valign="top">
                                                <td rowspan="1" class="NormalBold" style="width: 161px">
                                                    <strong>Left Pane</strong>
                                                </td>
                                                <td nowrap="nowrap" valign="top">
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td rowspan="2" style="width: 161px">
                                                    <asp:ListBox ID="lstLeftPane" DataSource="<%# leftList %>" DataTextField="Title" DataValueField="ID" Width="160px" Rows="12" runat="server" />
                                                </td>
                                                <td valign="top" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/up.gif" CommandName="up" runat="server" ID="btnUpLeftPane" OnClick="btnUpDownLeftPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/rt.gif" CommandName="right" sourcepane="leftPane" targetpane="contentPane" runat="server" ID="btnRightLeftPane" OnClick="btnRightLeftPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/dn.gif" CommandName="down" runat="server" ID="btnDownLeftPane" OnClick="btnUpDownLeftPane_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/edit.gif" AlternateText="Edit this item" runat="server" ID="btnEditLeftPane" OnClick="btnEditLeftPane_Click" ToolTip="Chỉnh sửa thuộc tính của module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/Images/Icons/User.gif" CommandName="security" CommandArgument="LeftPane" AlternateText="Permission" runat="server" ID="btnSecurityLeftPane" OnClick="btnSecurity_Click" ToolTip="Phân quyền cho module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/delete.gif" CommandArgument="LeftPane" AlternateText="Delete this item" runat="server" ID="btnDeleteLeftPane" OnClick="btnDeleteLeftPane_Click" OnClientClick="return confirm('Bạn có muốn xóa module này không?')" ToolTip="Xóa module" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="1%" valign="top">
                                        <table border="0" cellspacing="4" cellpadding="0">
                                            <tr valign="top">
                                                <td class="NormalBold" rowspan="1">
                                                    <strong>Content Pane</strong>
                                                </td>
                                                <td nowrap="nowrap" valign="top">
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td rowspan="2">
                                                    <asp:ListBox ID="lstContentPane" DataSource="<%# contentList %>" DataTextField="Title" DataValueField="ID" Width="160px" Rows="12" runat="server" />
                                                </td>
                                                <td valign="top" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/up.gif" CommandName="up" runat="server" ID="btnUpContentPane" OnClick="btnUpDownContentPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/lt.gif" sourcepane="contentPane" targetpane="leftPane" runat="server" ID="btnLeftContentPane" OnClick="btnLeftContentPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/rt.gif" sourcepane="contentPane" targetpane="rightPane" runat="server" ID="btnRightContentPane" OnClick="btnRightContentPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/dn.gif" CommandName="down" runat="server" ID="btnDownContentPane" OnClick="btnUpDownContentPane_Click" /><br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/edit.gif" CommandName="edit" CommandArgument="contentPane" AlternateText="Edit this item" runat="server" ID="btnEditContentPane" OnClick="btnEditContentPane_Click" ToolTip="Chỉnh sửa thuộc tính của module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/Images/Icons/User.gif" CommandName="security" CommandArgument="ContentPane" AlternateText="Permission" runat="server" ID="btnSecurityContentPane" OnClick="btnSecurity_Click" ToolTip="Phân quyền cho module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/delete.gif" runat="server" ID="btnDeleteContentPane" OnClick="btnDeleteContentPane_Click" OnClientClick="return confirm('Bạn có muốn xóa module này không?')" ToolTip="Xóa module" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                    <td width="98%" valign="top">
                                        <table border="0" cellspacing="4" cellpadding="0">
                                            <tr valign="top">
                                                <td rowspan="1" class="NormalBold">
                                                    <strong>Right Pane</strong>
                                                </td>
                                                <td nowrap="nowrap" valign="top">
                                                </td>
                                            </tr>
                                            <tr valign="top">
                                                <td rowspan="2">
                                                    <asp:ListBox ID="lstRightPane" DataSource="<%# rightList %>" DataTextField="Title" DataValueField="ID" Width="160px" Rows="12" runat="server" />
                                                </td>
                                                <td valign="top" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/up.gif" CommandName="up" runat="server" ID="btnUpRightPane" OnClick="btnUpDownRightPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/lt.gif" sourcepane="rightPane" targetpane="contentPane" runat="server" ID="btnLeftRightPane" OnClick="btnLeftRightPane_Click" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/dn.gif" CommandName="down" runat="server" ID="btnDownRightPane" OnClick="btnUpDownRightPane_Click" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" nowrap align="center">
                                                    <asp:ImageButton ImageUrl="~/images/icons/edit.gif" CommandName="edit" CommandArgument="rightPane" AlternateText="Edit this item" runat="server" ID="btnEditRightPane" OnClick="btnEditRightPane_Click" ToolTip="Chỉnh sửa thuộc tính của module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/Images/Icons/User.gif" CommandName="security" CommandArgument="RightPane" AlternateText="Permission" runat="server" ID="btnSecurityRightPane" OnClick="btnSecurity_Click" ToolTip="Phân quyền cho module" /><br />
                                                    <br>
                                                    <asp:ImageButton ImageUrl="~/images/icons/delete.gif" runat="server" ID="btnDeleteRightPane" OnClick="btnDeleteRightPane_Click" OnClientClick="return confirm('Bạn có muốn xóa module này không?')" ToolTip="Xóa module" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:LinkButton ID="btnUpdate" runat="server"><img runat="server" border="0" class="icon" src="~/Images/Icons/disk.gif" />&nbsp;&nbsp;&nbsp;Ghi</asp:LinkButton>
                <asp:LinkButton ID="btnCancel" runat="server">
                    <img runat="server" border="0" class="icon" src="~/Images/Icons/GoBack.gif" />&nbsp;&nbsp;&nbsp;Quay lại</asp:LinkButton>
            </td>
        </tr>
        <tr>
            <td align="right">
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
